package com.thinkgem.jeesite.modules.fantasy.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.modules.fantasy.entity.FantasyUser;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface FantasyUserDao extends CrudDao<FantasyUser> {
	//检查用户名是否存在
	int checkUser(String username);
	//检查昵称是否存在
	int checkNickname(String nickname);
	//检查邮箱是否可用
	int checkEmail(String email);
	//用户注册
	int register(FantasyUser user);
	//登陆验证
	FantasyUser login(FantasyUser user);
	int updateAuthFlag(String username);
	FantasyUser selectUser(String username);
	int updateNickname(FantasyUser user);
}
